var config={
	"title": "科达智能维保",
	"layout": {//界面中的组件配置
		"children": [
			{
				"id": "mi_carousel",
				"field": [
					"mi_carousel"
				],
				"speed": 400,
				"is_img": 1,
				"event_key": "",
				"visible": 1,
				"autoplay": 1,
				"duration": 2000,
				"vertical": 0,
				"show_dots": 1,
				"component_type": "mi-carousel"
			},
			{
				"id": "mi_group",
				"label": "常用应用",
				"style": {},
				"component_type": "mi-group"
			},
			{
				"id": "mi_grid",
				"field": [
					"mi_grid"
				],
				"columns": 3,
				"event_key": "grid_list",
				"component_type": "mi-grid"
			},
			{
				"id": "mi_gauge",
				"field": [
					"mi_gauge"
				],
				"event_key": "gauge_list",
				"new_group": 1,
				"chart_config": {
					"title": "仪表盘",
					"series": [
						{
							"max": 100,
							"min": 0,
							"data": [
								{
									"name": "完成率",
									"value": "10"
								}
							],
							"type": "gauge",
							"title": {
								"fontSize": 14
							},
							"center": [
								"50%",
								"50%"
							],
							"detail": {
								"fontSize": 13,
								"formatter": "{value}%"
							},
							"radius": "95%",
							"pointer": {
								"width": 4
							},
							"axisLine": {
								"lineStyle": {
									"color": [
										[
											0.2,
											"#91c7ae"
										],
										[
											0.8,
											"#63869e"
										],
										[
											1,
											"#c23531"
										]
									],
									"width": 6
								}
							},
							"endAngle": -45,
							"axisLabel": {
								"fontSize": 10
							},
							"splitLine": {
								"length": 4
							},
							"startAngle": 225,
							"splitNumber": 10
						}
					]
				},
				"component_type": "mi-gauge"
			},
			{
				"id": "mi_pie1",
				"field": [
					"mi_pie1"
				],
				"event_key": "pie_list",
				"chart_config": {
					"coord": {
						"radius": 1,
						"endAngle": 180,
						"startAngle": -180,
						"transposed": 0,
						"innerRadius": 0
					},
					"title": "<p>玫瑰图</p>",
					"legend": {
						"align": "left",
						"marker": "square",
						"offsetX": 0,
						"offsetY": 0,
						"position": "bottom",
						"formatterStr": "{{item}}({{per}})"
					},
					"render": {
						"position": "month*temp",
						"groupField": "month"
					}
				},
				"component_type": "mi-pie"
			},
			{
				"id": "mi_pie",
				"field": [
					"mi_pie"
				],
				"event_key": "pie_list",
				"chart_config": {
					"coord": {
						"radius": 0.85,
						"endAngle": 180,
						"startAngle": -180,
						"innerRadius": 0.4
					},
					"title": "<p>饼图</p>",
					"legend": {
						"align": "left",
						"marker": "square",
						"offsetX": 0,
						"offsetY": 0,
						"position": "right",
						"formatterStr": "{{item}} {{value}}({{per}})"
					},
					"render": {
						"position": "city*temp",
						"groupField": "month"
					}
				},
				"component_type": "mi-pie"
			},
			{
				"id": "mi_area",
				"field": [
					"mi_area"
				],
				"event_key": "fold_list",
				"chart_config": {
					"title": "<p>面积图</p>",
					"legend": {
						"align": "left",
						"marker": "square",
						"offsetX": 0,
						"offsetY": 0,
						"position": "top"
					},
					"render": {
						"type": "line",
						"shape": "smooth",
						"isGroup": 1,
						"position": "month*temp",
						"groupField": "city",
						"groupShape": {
							"Berlin": "smooth",
							"London": "line"
						}
					},
					"source": {
						"temp": {
							"type": "",
							"alias": "温度",
							"range": [],
							"formatter": "{{item}}°C",
							"tickCount": ""
						},
						"month": {
							"type": "",
							"range": [],
							"formatter": "{{item}}月",
							"tickCount": ""
						}
					},
					"tooltip": {
						"custom": 0,
						"showTitle": 1,
						"showCrosshairs": 1
					}
				},
				"component_type": "mi-area"
			},
			{
				"id": "mi_fold_line",
				"field": [
					"mi_fold_line"
				],
				"event_key": "fold_list",
				"chart_config": {
					"title": "<p>折线图</p>",
					"legend": {
						"align": "left",
						"marker": "square",
						"offsetX": 0,
						"offsetY": 0,
						"position": "top"
					},
					"render": {
						"type": "line",
						"shape": "smooth",
						"isGroup": 1,
						"position": "month*temp",
						"groupField": "city",
						"groupShape": {
							"Berlin": "smooth",
							"London": "line"
						},
						"isGradient": 0,
						"gradientColor": {
							"0": "red",
							"1": "yellow",
							"0.5": "green"
						}
					},
					"source": {
						"temp": {
							"type": "",
							"alias": "温度",
							"range": [],
							"formatter": "{{item}}°C",
							"tickCount": ""
						},
						"month": {
							"type": "",
							"range": [],
							"formatter": "{{item}}月",
							"tickCount": ""
						}
					},
					"tooltip": {
						"custom": 0,
						"showTitle": 1,
						"showCrosshairs": 1
					}
				},
				"component_type": "mi-line-bar"
			},
			{
				"id": "mi_fold_line1",
				"field": [
					"mi_fold_line1"
				],
				"event_key": "fold_list1",
				"chart_config": {
					"title": "<p>直方图</p>",
					"legend": {
						"align": "left",
						"marker": "square",
						"offsetX": 0,
						"offsetY": 0,
						"position": "top"
					},
					"render": {
						"type": "bar",
						"shape": "smooth",
						"isGroup": 1,
						"position": "month*temp",
						"groupField": "city",
						"groupShape": {
							"Berlin": "smooth",
							"London": "line"
						},
						"isGradient": 1,
						"gradientColor": {
							"0": "green",
							"1": "yellow",
							"0.5": "red"
						}
					},
					"source": {
						"temp": {
							"type": "",
							"alias": "温度",
							"range": [],
							"formatter": "{{item}}°C",
							"tickCount": ""
						},
						"month": {
							"type": "",
							"range": [],
							"formatter": "{{item}}月",
							"tickCount": ""
						}
					},
					"tooltip": {
						"custom": 0,
						"showTitle": 1,
						"showCrosshairs": 1
					}
				},
				"component_type": "mi-line-bar"
			},
			{
				"id": "mi_listview",
				"field": [
					"mi_listview"
				],
				"event_key": "listview",
				"template": "<div style='padding: 5px;'><div data-flex='cross:center' style='padding-top:15px'><img src={{img_url}} alt='' style='margin:0 15px'/><div style='color: #ccc;line-height: 18px'><p style='color:#2d8cf0;font-size:16px'>{{name}}</p><p>{{location}}</p><p>{{code}}</p></div></div><div style='margin:30px 0;font-size:30px;text-align:center;color:$$_{{status}}==1?\"red\":\"#28C75D\"_$$'>{{msg}}</div><div data-flex='cross:center main:justify'><div data-flex='cross:center'><span style='width:6px;height:6px;border-radius:50%!important; background:$$_{{online}}==1?\"#36c436\":\"#ccc\"_$$; margin-right:5px'></span><span style='color:$$_{{online}}==1?\"#28C75D\":\"#ccc\"_$$'>$$_{{online}}==1?'在线':'离线'_$$</span></div><div>更新于：{{rtc_str}}</div></div></div>",
				"component_type": "mi-listview",
				"use_body_scroll": 1
			}
		]
	},
	"form_data": {//page页不请求info接口
		"api": {
			"url": "entity/create?_ec=user",
			"params": [],
			"page_enable": 0
		},
		"fields": []
	},
	"datasources": [//layout。children中的event_key对应的数据源配置
		{
			"id": "listview",
			"api": {
				"url": "lv/data?_lc=real_time_list1",
				"params": [
					{
						"key": "status",
						"data_type": "number"
					},
					{
						"key": "keyword"
					}
				],
				"page_enable": 1
			},
			"tabs_id": "tabs_list",
			"source_type": "server"
		},
		{
			"id": "carousel_list",
			"api": {
				"url": "lv/data?_lc=home_banner_list",
				"params": [],
				"page_enable": 0
			},
			"options": [
				"http://wx-ads.b0.upaiyun.com/20160720/20160720578f4d9f18e98.png",
				"http://mc-wb.oss-cn-shanghai.aliyuncs.com/wb_file/06b1_4062_1527738742740.jpg",
				"http://mc-wb.oss-cn-shanghai.aliyuncs.com/wb_file/2325_b1ff_1527740106367.png"
			],
			"source_type": "option"
		},
		{
			"id": "grid_list",
			"options": [
				{
					"url": "/page?_fc=weibao_web_app_list",
					"icon": "http://mc-wb.oss-cn-shanghai.aliyuncs.com/image/app_shishijiankong.png",
					"text": "实时监测"
				},
				{
					"url": "/page?_fc=customer_alert1",
					"icon": "http://mc-wb.oss-cn-shanghai.aliyuncs.com/image/app_guzhangbaojing.png",
					"text": "故障报警"
				},
				{
					"url": "/create?_fc=customer_quickly1",
					"icon": "http://mc-wb.oss-cn-shanghai.aliyuncs.com/image/app_kuaisubaoxiu.png",
					"text": "快速报修"
				},
				{
					"url": "/page?_fc=web_app_declaration",
					"icon": "http://mc-wb.oss-cn-shanghai.aliyuncs.com/image/app_baoxiudan.png",
					"text": "报修单"
				},
				{
					"url": "/page?_fc=shuiliu",
					"icon": "http://mc-wb.oss-cn-shanghai.aliyuncs.com/image/app_xiaoxi.png",
					"text": "消息"
				},
				{
					"url": "/create?_fc=feedback_advice",
					"icon": "http://mc-wb.oss-cn-shanghai.aliyuncs.com/image/app_yijianfankui.png",
					"text": "反馈建议"
				}
			],
			"source_type": "option"
		},
		{
			"id": "grid_list1",
			"options": [
				{
					"url": "/create?_fc=gonglv",
					"icon": "http://mc-wb.oss-cn-shanghai.aliyuncs.com/image/app_shishijiankong.png",
					"text": "实时监控"
				},
				{
					"url": "/list?_fc=ip",
					"icon": "http://mc-wb.oss-cn-shanghai.aliyuncs.com/image/app_guzhangbaojing.png",
					"text": "故障报警"
				},
				{
					"url": "/create?_fc=nvr",
					"icon": "http://mc-wb.oss-cn-shanghai.aliyuncs.com/image/app_kuaisubaoxiu.png",
					"text": "快速报修"
				}
			],
			"source_type": "option"
		},
		{
			"id": "fold_list",
			"options": [
				{
					"city": "London",
					"temp": 18.9,
					"month": "一"
				},
				{
					"city": "London",
					"temp": 28.8,
					"month": "二"
				},
				{
					"city": "London",
					"temp": 39.3,
					"month": "三"
				},
				{
					"city": "London",
					"temp": 81.4,
					"month": "四"
				},
				{
					"city": "London",
					"temp": 47,
					"month": "五"
				},
				{
					"city": "London",
					"temp": 12,
					"month": "20.3"
				},
				{
					"city": "London",
					"temp": 24,
					"month": "七"
				},
				{
					"city": "London",
					"temp": 35.6,
					"month": "八"
				},
				{
					"city": "Berlin",
					"temp": 12.4,
					"month": "一"
				},
				{
					"city": "Berlin",
					"temp": 23.2,
					"month": "二"
				},
				{
					"city": "Berlin",
					"temp": 34.5,
					"month": "三"
				},
				{
					"city": "Berlin",
					"temp": 99.7,
					"month": "四"
				},
				{
					"city": "Berlin",
					"temp": 52.6,
					"month": "五"
				},
				{
					"city": "Berlin",
					"temp": 35.5,
					"month": "六"
				},
				{
					"city": "Berlin",
					"temp": 37.4,
					"month": "七"
				},
				{
					"city": "Berlin",
					"temp": 42.4,
					"month": "八"
				}
			],
			"source_type": "option"
		},
		{
			"id": "fold_list1",
			"options": [
				{
					"city": "London",
					"temp": 18.9,
					"month": "一"
				},
				{
					"city": "London",
					"temp": 28.8,
					"month": "二"
				},
				{
					"city": "London",
					"temp": 39.3,
					"month": "三"
				},
				{
					"city": "London",
					"temp": 81.4,
					"month": "四"
				},
				{
					"city": "London",
					"temp": 47,
					"month": "五"
				},
				{
					"city": "London",
					"temp": 12,
					"month": "20.3"
				},
				{
					"city": "London",
					"temp": 24,
					"month": "七"
				},
				{
					"city": "London",
					"temp": 35.6,
					"month": "八"
				}
			],
			"source_type": "option"
		},
		{
			"id": "pie_list",
			"options": [
				{
					"city": "London",
					"temp": 12,
					"month": "购物"
				},
				{
					"city": "London",
					"temp": 24,
					"month": "旅游"
				},
				{
					"city": "London",
					"temp": 36,
					"month": "理财"
				},
				{
					"city": "London",
					"temp": 98,
					"month": "吃饭"
				}
			],
			"source_type": "option"
		},
		{
			"id": "gauge_list",
			"api": {
				"url": "/sql/query-scalar?_sc=sql_kq_yc"
			},
			"source_type": "server"
		}
	]
}